package com.chookss.home.entity;

import java.io.Serializable;
import java.util.List;

public class KnowledgeEntity implements Serializable {


    /**
     * playCount : 0
     * code : 1
     * fileNum : 0
     * parentCode :
     * totalNum : 3
     * name : 共享空间
     * folderNum : 3
     * lvlNo : 0
     * likeCount : 0
     * childList : [{"playCount":0,"code":"1002","fileNum":0,"parentCode":"1","totalNum":0,"name":"二级目录2","folderNum":0,"lvlNo":"1","likeCount":0,"childList":[]},{"playCount":0,"code":"1003","fileNum":0,"parentCode":"1","totalNum":0,"name":"二级目录3","folderNum":0,"lvlNo":"1","likeCount":0,"childList":[]},{"playCount":0,"code":"1004","fileNum":0,"parentCode":"1","totalNum":0,"name":"二级目录1","folderNum":0,"lvlNo":"1","likeCount":0,"childList":[]}]
     */

    private String playCount;
    private String code;
    private String fileNum;
    private String parentCode;
    private String totalNum;
    private String name;
    private String folderNum;
    private String lvlNo;
    private String likeCount;
    private String resourceType;//全选的类型
    private String folderName;  //所属上层文件夹名称
    private String hierarchyOrgCode="";  //之前各个层级以_链接
    //isSelect 被选中true   halfSelect一定是false  upperHalfSelect不一定   被选中false   halfSelect一定是false  upperHalfSelect不一定
    //halfSelect半选状态true  isSelect一定是false  upperHalfSelect一定是true  半选状态false   isSelect不一定  upperHalfSelect不一定
    private boolean isSelect = false;
    private boolean halfSelect=false; //是否半选状态  isSelect为true此值一定是FALSE  isSelect为false此值可能是false也可能是true
    private String halfSelectNum=""; //半选状态下所属目录所选文件数量
    private boolean upperHalfSelect = false; //上层是否半选， 如果上层已经半选状态了，下面的虽然select但是地层弹窗ui不显示特此标注
    private List<ChildListBean> childList;

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getFolderName() {
        return folderName;
    }

    public void setFolderName(String folderName) {
        this.folderName = folderName;
    }

    public String getHalfSelectNum() {
        return halfSelectNum;
    }

    public void setHalfSelectNum(String halfSelectNum) {
        this.halfSelectNum = halfSelectNum;
    }

    public boolean isUpperHalfSelect() {
        return upperHalfSelect;
    }

    public void setUpperHalfSelect(boolean upperHalfSelect) {
        this.upperHalfSelect = upperHalfSelect;
    }

    public boolean isHalfSelect() {
        return halfSelect;
    }

    public void setHalfSelect(boolean halfSelect) {
        this.halfSelect = halfSelect;
    }

    public String getHierarchyOrgCode() {
        return hierarchyOrgCode;
    }

    public void setHierarchyOrgCode(String hierarchyOrgCode) {
        this.hierarchyOrgCode = hierarchyOrgCode;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }


    public String getPlayCount() {
        return playCount;
    }

    public void setPlayCount(String playCount) {
        this.playCount = playCount;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFileNum() {
        return fileNum;
    }

    public void setFileNum(String fileNum) {
        this.fileNum = fileNum;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFolderNum() {
        return folderNum;
    }

    public void setFolderNum(String folderNum) {
        this.folderNum = folderNum;
    }

    public String getLvlNo() {
        return lvlNo;
    }

    public void setLvlNo(String lvlNo) {
        this.lvlNo = lvlNo;
    }

    public String getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(String likeCount) {
        this.likeCount = likeCount;
    }

    public List<ChildListBean> getChildList() {
        return childList;
    }

    public void setChildList(List<ChildListBean> childList) {
        this.childList = childList;
    }

    public static class ChildListBean implements Serializable{
        /**
         * playCount : 0
         * code : 1002
         * fileNum : 0
         * parentCode : 1
         * totalNum : 0
         * name : 二级目录2
         * folderNum : 0
         * lvlNo : 1
         * likeCount : 0
         * childList : []
         */

        private String playCount;
        private String code;
        private String fileNum;
        private String parentCode;
        private String totalNum;
        private String name;
        private String folderNum;
        private String lvlNo;
        private String likeCount;
        private List<?> childList;
        private boolean isSelect = false;

        private boolean halfSelect=false; //是否半选状态  isSelect为true此值一定是FALSE  isSelect为false此值可能是false也可能是true
        private boolean upperHalfSelect = false; //上层是否半选， 如果上层已经半选状态了，下面的虽然select但是地层弹窗ui不显示特此标注
        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public boolean isHalfSelect() {
            return halfSelect;
        }

        public void setHalfSelect(boolean halfSelect) {
            this.halfSelect = halfSelect;
        }

        public boolean isUpperHalfSelect() {
            return upperHalfSelect;
        }

        public void setUpperHalfSelect(boolean upperHalfSelect) {
            this.upperHalfSelect = upperHalfSelect;
        }

        public String getPlayCount() {
            return playCount;
        }

        public void setPlayCount(String playCount) {
            this.playCount = playCount;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getFileNum() {
            return fileNum;
        }

        public void setFileNum(String fileNum) {
            this.fileNum = fileNum;
        }

        public String getParentCode() {
            return parentCode;
        }

        public void setParentCode(String parentCode) {
            this.parentCode = parentCode;
        }

        public String getTotalNum() {
            return totalNum;
        }

        public void setTotalNum(String totalNum) {
            this.totalNum = totalNum;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFolderNum() {
            return folderNum;
        }

        public void setFolderNum(String folderNum) {
            this.folderNum = folderNum;
        }

        public String getLvlNo() {
            return lvlNo;
        }

        public void setLvlNo(String lvlNo) {
            this.lvlNo = lvlNo;
        }

        public String getLikeCount() {
            return likeCount;
        }

        public void setLikeCount(String likeCount) {
            this.likeCount = likeCount;
        }

        public List<?> getChildList() {
            return childList;
        }

        public void setChildList(List<?> childList) {
            this.childList = childList;
        }
    }
}
